package j04zifu;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;

public class J1 {
    public static void main(String[] args) throws Exception {
        FileReader f = new FileReader("_1218/src/j04zifu/1.txt");
//        System.out.println("f.read() = " + f.read());//97
//        System.out.println("f.read() = " + (char)f.read());//

        char[] arr = new char[5];
        f.read(arr);
        System.out.println(Arrays.toString(arr));


    }
}

class J2write{
    public static void main(String[] args) throws IOException {
        FileWriter f = new FileWriter("_1218/src/j04zifu/2.txt",true);
        f.write("华a为手机");
        f.write('b');
        f.close();
    }
}
